<template>
    <div class="sendMsg">
        <el-button type="primary" class="butttonSelect"  @click="sendMsg" :disabled="disabled">{{label}}</el-button>
        <el-dialog
            width="80%"
            :title="label"
            :visible.sync="innerVisible"
            style="left:10%"
            append-to-body>
            <div style="height:600px;overflow:hidden;box-sizing:border-box">
                <send-msg @close="closes" :exkey="exkey" :data="data"></send-msg>
            </div>
            
        </el-dialog>
    </div>
</template>
<script>
import SendMsg  from '../edit/SendMsg.vue'
export default {
    props:['exkey','extype','id','label','data','appid','dataField','isRequired'],
    components: {
        SendMsg
    },
    data(){
        return{
            innerVisible:false,
        }
    },
    created(){
    },
    methods:{
        sendMsg(){
            this.innerVisible=true;
        },
        closes(data){
            this.innerVisible=false;
        }
    }
}
</script>